<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Route::post('test', 'Api\IndexController@test');
Route::post('facesearch', 'Api\IndexController@faceSearch');
Route::post('gamelog', 'Api\GamesController@store');

Route::get('gamedata', 'Api\GamesController@getGameData');

Route::post('scanface/{id}', 'Api\FacePhotoController@scanFace');
Route::post('scanlist', 'Api\FacePhotoController@scanFaceList');

Route::post('import', 'Api\StudentImportController@import');